package com.boco.fznq.login;

import android.content.Context;
import android.text.TextUtils;

import com.boco.fznq.utils.SPKey;
import com.boco.fznq.utils.SPUtils;

/**
 * 账户相关的工具类
 *
 * Created by jiangcheng on 2017/9/16.
 */

public class AccountUtils {

    /**
     * 是否登录
     *
     * @return
     */
    public static boolean isLogin(Context context) {
        String token = (String) SPUtils.get(context, SPKey.TOKEN, "");
        return !TextUtils.isEmpty(token);
    }


}
